package com.stlm2.dems.entity;

/**
 * Created by ZLQ on 2017/6/14.
 */
public enum TiXianState {

    Pending(1) {
        public String toString() {
            return "待审核";
        }
    },
    NoPass(2) {
        public String toString() {
            return "审核不通过";
        }
    },
    Pass(3) {
        public String toString() {
            return "审核通过";
        }
    };
    private final int val;

    TiXianState(int n) {
        val = n;
    }

    public int getIntValue() {
        return val;
    }

    public static TiXianState getByIntValue(int n) {
        switch (n) {
            case 1:
                return Pending;
            case 2:
                return NoPass;
            case 3:
                return Pass;

            default:
                return null;
        }
    }
}
